package com.zlsy.es.dianping.baseexception;

import com.zlsy.es.dianping.constan.ErrorStatusEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhouliang
 * @date 2020/2/29 1:01
 */
@Getter
@Setter
public class BizException extends BaseException {

    public BizException(ErrorStatusEnum errorCodesBase) {
        super(errorCodesBase.getErrCode(), errorCodesBase.getErrMsg());
    }

    public BizException(String errMsg) {
        super(errMsg);
    }

}
